/*基础公共样式*/
/** 公共样式  例如 padding margin 等
 * @desc:
 * @author zhangqiang
 * @date 2022/1/14
*/

@import 'flex';

* {
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
}

html {
    //font-size: 14px;
    //min-width: 1360PX;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.fl {
    float: left;
}

.fr {
    float: right;
    display: flex;
}

.clearfix:after {
    clear: both;
    content: ' ';
    display: block;
    font-size: 0;
    line-height: 0;
    visibility: hidden;
    width: 0;
    height: 0;
}

.t-no-border {
    border-right: 0 !important;
}

.t-no-left-border {
    border-left: 0 !important;
}

.t-right-border {
    border-right: 1px solid #2f4e7b !important;
}

/*字体大小设置 10-65字体大小为 font-10 font-65等*/
.lg-font {
    font-size: 15px;
}

.sm-font {
    font-size: 12px;
}

.font-sm {
    font-size: 14px;
}

.larger-font {
    font-size: 18px;
}

@mixin set-font($font-level: 65) {
    @for $i from 10 through $font-level {
        .font-#{$i} {
            font-size:"#{$i}" px !important;
        }
    }
}

@include set-font();

.fw-400 {
    font-weight: 400;
}

.fw-700 {
    font-weight: 700;
}

// .width-3000 ===> width: 3000px
@for $i from 1 through 3000 {
    .width-#{$i} {
        width: $i + px !important;
    }
}

// .w-100 ===> width: 100%  宽度 100%
@for $i from 1 through 100 {
    .w-#{$i} {
        width: $i * 1% !important;
    }
}

// .height-3000 ===> height: 3000px
@for $i from 1 through 3000 {
    .height-#{$i} {
        height: $i + px !important;
    }
}

// .h-100 ===> height: 100%  高度 100%
@for $i from 1 through 100 {
    .h-#{$i} {
        height: $i * 1% !important;
    }
}

// margin
@for $i from 1 through 999 {
    .m-#{$i} {
        margin-right: $i + px !important;
    }
}

@for $i from 1 through 999 {
    .m-t-#{$i} {
        margin-top: $i + px !important;
    }
}

@for $i from 1 through 999 {
    .m-b-#{$i} {
        margin-bottom: $i + px !important;
    }
}

@for $i from 1 through 999 {
    .m-l-#{$i} {
        margin-left: $i + px !important;
    }
}

@for $i from 1 through 999 {
    .m-r-#{$i} {
        margin-right: $i + px !important;
    }
}

// margin end

// padding
@for $i from 1 through 999 {
    .p-#{$i} {
        padding: $i + px !important;
    }
}

@for $i from 1 through 999 {
    .p-t-#{$i} {
        padding-top: $i + px !important;
    }
}

@for $i from 1 through 999 {
    .p-b-#{$i} {
        padding-bottom: $i + px !important;
    }
}

@for $i from 1 through 999 {
    .p-l-#{$i} {
        padding-left: $i + px !important;
    }
}

@for $i from 1 through 999 {
    .p-r-#{$i} {
        padding-right: $i + px !important;
    }
}


/* 更改滚动条样式
 */
::-webkit-scrollbar-track-piece {
    -webkit-border-radius: 2em;
    -moz-border-radius: 2em;
    border-radius: 2em;
}

/*滚动条的宽度*/
::-webkit-scrollbar {
    width: 5px;
    max-height: 6px;
}

/*滚动条的设置*/
::-webkit-scrollbar-thumb {
    background-color: $--color-scroll-bg;
    background-clip: padding-box;
    -webkit-border-radius: 2em;
    -moz-border-radius: 2em;
    border-radius: 2em;
}

/*滚动条鼠标移上去*/
::-webkit-scrollbar-thumb:hover {
    // #19355A
    //background-color: #19355A;
}

.el-image-viewer__wrapper {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0
}

.el-image-viewer__btn {
    position: absolute;
    z-index: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    border-radius: 50%;
    opacity: .8;
    cursor: pointer;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none
}

.el-image-viewer__close {
    top: 40px;
    right: 40px;
    width: 40px;
    height: 40px;
    font-size: 40px
}

.el-image-viewer__canvas {
    width: 100%;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center
}

.el-image-viewer__actions {
    left: 50%;
    bottom: 30px;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    width: 282px;
    height: 44px;
    padding: 0 23px;
    background-color: #606266;
    border-color: #fff;
    border-radius: 22px
}

.el-image-viewer__actions__inner {
    width: 100%;
    height: 100%;
    text-align: justify;
    cursor: default;
    font-size: 23px;
    color: #fff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: distribute;
    justify-content: space-around
}

.el-image-viewer__next,
.el-image-viewer__prev {
    top: 50%;
    width: 44px;
    height: 44px;
    font-size: 24px;
    color: #fff;
    background-color: #606266;
    border-color: #fff
}

.el-image-viewer__prev {
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    left: 40px
}

.el-image-viewer__next {
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    right: 40px;
    text-indent: 2px
}

.el-image-viewer__mask {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: .5;
    background: #000
}
